
cmake_minimum_required(VERSION 3.5.1)

project(qss-designer-panel LANGUAGES CXX VERSION 0.0.1)

include(cmake/SparkEnvConfig.cmake)
include(cmake/SparkMacrosConfig.cmake)
include(cmake/SparkFindLibraries.cmake)
include(cmake/SparkFindQt5Config.cmake)
include(cmake/SparkFindQt6Config.cmake)
include(cmake/SparkInstallMacros.cmake)

# 资源文件路径
set(QRC_SOURCES "")

spark_add_executable_path(${PROJECT_NAME} src
    ${QRC_SOURCES}
)
target_link_qt5(${PROJECT_NAME})

spark_install("/usr")
install(TARGETS ${PROJECT_NAME}
    DESTINATION /opt/zTools/app
)
spark_install_file(assets/${PROJECT_NAME}.png
    /opt/zTools/icons)
spark_install_file(assets/${PROJECT_NAME}.desktop
    share/applications)
spark_install_changelog(debian/changelog)

include(cmake/SparkBuildGraphviz.cmake)
find_package(DebPackage PATHS ${CMAKE_SOURCE_DIR})
add_package_descript(cmake/package-deb.descript)